package com.server.model.all.util;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;
import java.util.stream.Collectors;

/**
 * Treeselect树结构实体类
 * 
 * @author dividiy
 */
@Getter
@Setter
public class TreeSelect<T> implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 节点ID */
    private Long id;

    /** 节点ID */
    private Long parentId;

    private String label;

    /** 子节点 */
    private List<T> children;

    public TreeSelect() {

    }

}
